package com.hqyj.demo.service;

import com.hqyj.demo.entity.Goods;
import com.hqyj.demo.entity.Purchase;
import com.hqyj.demo.entity.Sale;
import com.hqyj.demo.entity.vo.PurchaseOrSaleVo;
import com.hqyj.demo.utils.R;

import java.util.List;

public interface SaleService {

    //模糊分页查询
    R selectPageLike(PurchaseOrSaleVo saleVo);

    //根据ID查询单据详细信息
    Sale selectById(Integer id);

    //初始化入库页面数据
    R stackPageInit();

    //根据类型查询商品
    R queryByTypeGoods(Integer typeId);

    //添加入库单据
    Boolean saveSale(Sale sale, List<Goods> goodsList);
}
